package com.gg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Auther: YDYX
 * @Date: 2022/1/11 - 01 - 11 - 11:40
 * @Description: com.gg.pojo
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String username;
    private String pwd;
    private String salt;

    public User(Integer userId, String username) {
        this.userId = userId;
        this.username = username;
    }
}
